﻿/******************************************************************************
 * 【本类功能概述】                                 					      *
 *  版权所有（C）2017-20XX，My                                                *
 *  保留所有权利。                                                            *
 ******************************************************************************
 *  作者 : <hughjk>
 *  创建时间:2019/11/28 23:31:17
 *  文件描述:
 *****************************************************************************/


using UnityEngine;
using UnityEngine.UI;
public class UiMainUiInfo
{
    private Transform _transform;

    /// <summary>m_menuButton</summary> 
    [HideInInspector]
    public Button m_menuButton;

    /// <summary>m_icon</summary> 
    [HideInInspector]
    public Image m_icon;
    /// <summary>m_scrollbar</summary> 
    [HideInInspector]
    public Scrollbar m_scrollbar;

    /// <summary>m_name</summary> 
    [HideInInspector]
    public Text m_name;
    /// <summary>m_attribute</summary> 
    [HideInInspector]
    public Text m_attribute;

    /// <summary>m_menu</summary> 
    [HideInInspector]
    public GridLayoutGroup m_menu;
    /// <summary>m_info</summary> 
    [HideInInspector]
    public GameObject m_info;
    /// <summary>m_create</summary> 
    [HideInInspector]
    public GameObject m_create;
    /// <summary>m_iocnPurikura</summary> 
    [HideInInspector]
    public IocnItem m_iocnPurikura;
    [HideInInspector]
    public IocnItem[] m_IconItems;
    /// <summary>m_grid</summary> 
    [HideInInspector]
    public GameObject m_grid;

    public UiMainUiInfo(Transform transform)
    {
        _transform = transform;

        m_menuButton = _transform.Find("Menu/MenuButton").GetComponent<Button>();

        m_icon = _transform.Find("Info/Icon").GetComponent<Image>();
        m_scrollbar = _transform.Find("Info/Create/Scrollbar").GetComponent<Scrollbar>();

        m_name = _transform.Find("Info/Name").GetComponent<Text>();
        m_attribute = _transform.Find("Info/Attribute").GetComponent<Text>();

        m_menu = _transform.Find("Menu").GetComponent<GridLayoutGroup>();
        m_info = _transform.Find("Info").gameObject;
        m_create = _transform.Find("Info/Create").gameObject;
        m_iocnPurikura = _transform.Find("Info/Create/IocnPurikura").GetComponent<IocnItem>();
        m_grid = _transform.Find("Info/Create/Grid").gameObject;
        m_IconItems = m_grid.GetComponentsInChildren<IocnItem>();
    }
}

